package com.ph.website.home.service;

import com.ph.website.home.base.common.CommonResult;
import com.ph.website.home.param.NewsParam;

import javax.validation.Valid;

public interface INewsService {

    /**后台分页查询新闻列表*/
    CommonResult list(NewsParam.ListParam param);

    /**提交审核*/
    CommonResult verify(NewsParam.VerifyParam param);

    /**删除*/
    CommonResult delete(NewsParam.DeleteParam param);

    /**发布*/
    CommonResult publish(NewsParam.PublishParam param);

    /**驳回*/
    CommonResult reject(NewsParam.RejectParam param);

    /**取消发布*/
    CommonResult unPublish(NewsParam.UnPublishParam param);

    /**新增新闻*/
    CommonResult add(NewsParam.AddParam param);

    /**修改新闻*/
    CommonResult modify(NewsParam.ModifyParam param);

    /**获取新闻*/
    CommonResult get(NewsParam.GetParam param);
}
